package com.ruoyi.contarct.mapper;

import java.util.List;
import com.ruoyi.contarct.domain.HouseContarct;
import org.apache.ibatis.annotations.Param;

/**
 * 合同Mapper接口
 * 
 * @author hct
 * @date 2022-02-16
 */
public interface HouseContarctMapper 
{
    /**
     * 查询合同
     * 
     * @param id 合同主键
     * @return 合同
     */
    public HouseContarct selectHouseContarctById(Long id);

    /**
     * 查询合同列表
     * 
     * @param houseContarct 合同
     * @return 合同集合
     */
    public List<HouseContarct> selectHouseContarctList(HouseContarct houseContarct);

    /**
     * 新增合同
     * 
     * @param houseContarct 合同
     * @return 结果
     */
    public int insertHouseContarct(HouseContarct houseContarct);

    /**
     * 修改合同
     * 
     * @param houseContarct 合同
     * @return 结果
     */
    public int updateHouseContarct(HouseContarct houseContarct);

    /**
     * 删除合同
     * 
     * @param id 合同主键
     * @return 结果
     */
    public int deleteHouseContarctById(Long id);

    /**
     * 批量删除合同
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHouseContarctByIds(Long[] ids);

    /**
     * 根据id
     * @param id
     * @return
     */
    public HouseContarct getHouseContarctData(@Param("id") Long id);


    /**
     * 无分页合同列表
     * @param houseContarct
     * @return
     */
    public List<HouseContarct> getHouseContarctListNoPage(HouseContarct houseContarct);

    /**
     * 还有几天到期的合同*
     * @param day 合同
     * @return 合同集合
     */
    public List<HouseContarct> getDaoqiHouseContarctList(int day);
}
